package ui.activity.poscontrol.beanmodel;

import java.util.List;

public class PosInfoBean {

        /**
         * current : 1
         * pages : 9
         * records : [{"merchantPhone":"18796382908","rate":"0.55","sn":"00003102911812083792729","merchantName":"张长征","sign":"1"},{"merchantPhone":"15062177288","rate":"0.6","sn":"00003102911812083792741","merchantName":"石春莲","sign":"1"},{"merchantPhone":"15852173699","rate":"0.6","sn":"00003102911812083792742","merchantName":"朱颖","sign":"1"},{"merchantPhone":"13645215623","rate":"0.6","sn":"00003102911812083792743","merchantName":"王建忠","sign":"1"},{"merchantPhone":"15262101998","rate":"0.6","sn":"00003102911812083792756","merchantName":"杨惠靖","sign":"1"}]
         * size : 5
         * total : 41
         */

        private int current;
        private int pages;
        private int size;
        private int total;
        private List<RecordsBean> records;

        public int getCurrent() {
            return current;
        }

        public void setCurrent(int current) {
            this.current = current;
        }

        public int getPages() {
            return pages;
        }

        public void setPages(int pages) {
            this.pages = pages;
        }

        public int getSize() {
            return size;
        }

        public void setSize(int size) {
            this.size = size;
        }

        public int getTotal() {
            return total;
        }

        public void setTotal(int total) {
            this.total = total;
        }

        public List<RecordsBean> getRecords() {
            return records;
        }

        public void setRecords(List<RecordsBean> records) {
            this.records = records;
        }

        public static class RecordsBean {
            /**
             * merchantPhone : 18796382908
             * rate : 0.55
             * sn : 00003102911812083792729
             * merchantName : 张长征
             * sign : 1
             */

            private String merchantPhone;
            private String rate;
            private String sn;
            private String orderId;
            private String merchantName;
            private String merchantLevel;
            private String merchantDividedRatio;
            private String sign;
            private String merchantNo;
            private int type;
            private int remainingDay;
            private boolean isSelected;
            public String getMerchantPhone() {
                return merchantPhone;
            }

            public int getType() {
                return type;
            }

            public void setType(int type) {
                this.type = type;
            }

            public void setMerchantPhone(String merchantPhone) {
                this.merchantPhone = merchantPhone;
            }

            public boolean isSelected() {
                return isSelected;
            }

            public void setSelected(boolean selected) {
                isSelected = selected;
            }

            public String getOrderId() {
                return orderId;
            }

            public void setOrderId(String orderId) {
                this.orderId = orderId;
            }

            public String getRate() {
                return rate;
            }

            public int getRemainingDay() {
                return remainingDay;
            }

            public void setRemainingDay(int remainingDay) {
                this.remainingDay = remainingDay;
            }

            public void setRate(String rate) {
                this.rate = rate;
            }

            public String getMerchantLevel() {
                return merchantLevel;
            }

            public String getMerchantDividedRatio() {
                return merchantDividedRatio;
            }

            public void setMerchantDividedRatio(String merchantDividedRatio) {
                this.merchantDividedRatio = merchantDividedRatio;
            }

            public void setMerchantLevel(String merchantLevel) {
                this.merchantLevel = merchantLevel;
            }

            public String getMerchantNo() {
                if(null == merchantNo||merchantNo.equals("null")){
                    return "";
                }
                return merchantNo;
            }

            public void setMerchantNo(String merchantNo) {
                this.merchantNo = merchantNo;
            }

            public String getSn() {
                return sn;
            }

            public void setSn(String sn) {
                this.sn = sn;
            }

            public String getMerchantName() {
                return merchantName;
            }

            public void setMerchantName(String merchantName) {
                this.merchantName = merchantName;
            }

            public String getSign() {
                return sign;
            }

            public void setSign(String sign) {
                this.sign = sign;
            }
        }
}
